package com.novellotus.iov.carvice.activity;

import android.os.Bundle;
import android.view.KeyEvent;
import android.widget.Button;
import android.widget.TextView;

import com.novellotus.iov.carvice.R;
import com.novellotus.iov.carvice.utils.MyUtils;

import butterknife.BindView;
import butterknife.OnClick;

public class PaySuccessActivity extends BaseActivity {

    @BindView(R.id.tv_tittle)
    TextView tv_tittle;

    @Override
    protected void initContentView(Bundle savedInstanceState) {
        setContentView(R.layout.activity_pay_success);
    }

    @Override
    public void init() {
        tv_tittle.setText("支付成功");
    }

    @OnClick(R.id.btn_right)
    void complete() {
        MyUtils.clearActivity();
        finish();
    }


    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        if ((keyCode == KeyEvent.KEYCODE_BACK)) {
            MyUtils.clearActivity();
            finish();
            return false;
        } else {
            return super.onKeyDown(keyCode, event);
        }

    }
}
